<?php
    \defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">Groups -> Add new group</h3>
    </div>
    
    <div class="panel-body">
        <div class="btn-toolbar">
          <div class="btn-group">
              <?php /* 
               * todo: if user has permission to add new group then show the button 
               */ ?>
              <button id="btn_add" type="button" class="btn btn-default">
                  <span class="glyphicon glyphicon-thumbs-up"></span> Save
              </button>
              
              <?php /* 
               * todo: if user has permission to Edit group then show the button 
               */ ?>
              <button id="btn_edit" type="button" class="btn btn-default">
                  <span class="glyphicon glyphicon-thumbs-down"></span> Cancel
              </button>
          </div>
        </div>
        <hr>
        <div class="container row">
            <div class="new_group_form col-md-4">
                <?php $this->frm_add_group->render() ?>
            </div>
            <div class="col-md-1"></div>
            <div class="groups_list col-md-7">
                <label>Choose the new Group's parent:</label>
                <div class="loading-indicator"><div class="img"></div>Loading...</div>
                <div class="alert alert-danger alert-dismissable text-center error_msg">
                      <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                      <strong>Warning!</strong> could not get the requested Group's list :<br />
                </div>
                <div id='glist'></div>
            </div>
        </div>
    </div>
    <div class="panel-footer"></div>
</div>

